import http from "@/utils/request"
// 增加学员信息
export const addStu=(data)=>http.post('/students/addstu',{...data})

// 获取学员信息
export const getStuListApi=(count=10,page=1,classes)=>http.get('/students/getstulist',{
    params:{
        count,page,class:classes
    }
})

// 编辑学员信息
export const editStuApi=(data)=>http.post('/students/updatestu',{
    ...data
})

// 删除学员信息
export const deleteStu = (sId) => http.get('/students/delstu', {
    params: {
        sId
    }
})

// 搜索学员信息
export const searchApi=(key,count,page)=>http.get('/students/searchstu',{
    params:{
        key,count,page
    }
})

// 获取登入日志
export const logs=(page,count)=>http.get('/getloginlog',{
    params:{
        page,count
    }
})

// 获取所有用户
export const user=()=>http.get('/users/getAllUsers')

